<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <center>
            <h:form>
                <p:panelGrid columns="2">
                    ID <h:outputText value="#{usuarioBean.usuario.id}" />
                    USUÁRIO<h:outputText value="#{usuarioBean.usuario.usuario}"/>
                    SENHA ATUAL<p:inputText value="#{usuarioBean.senhaAtual}"/>
                    NOVA SENHA<p:inputText value="#{usuarioBean.novaSenha}"/>
                    CONFIRMAR NOVA SENHA<p:inputText value="#{usuarioBean.confirmarNovaSenha}"/>
                    
                    <h:inputHidden/>
                    
                    <p:commandButton value="Salvar" action="#{usuarioBean.trocarSenha()}"  update="@all" />                    
                    
                </p:panelGrid>
                
            </h:form>
            
        </center>
    </h:body>
</html>

